#include "motor_control.h"


static void Delay200ms()	//@24.000MHz
{
	unsigned char data i, j, k;
	i = 25;
	j = 90;
	k = 176;
	do
	{
		do
		{
			while (--k);
		} while (--j);
	} while (--i);
}



void Motor_Init() {
    HAL_MOTOR_Init();
}

void Motor_SetSpeed(float speed) {
    HAL_MOTOR_SetSpeed(speed);
}

void Motor_Warn(){
    Motor_SetSpeed(100);
    Delay200ms();
    Motor_SetSpeed(0);
}


